<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>工作坊入口</title>
    <style>
        body {
            font-family: 'Segoe UI', sans-serif;
            background: #f0f8ff;
            height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            margin: 0;
        }

        .container {
            text-align: center;
            padding: 30px;
            background: white;
            border-radius: 20px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        }

        h1 {
            color: #2196F3;
            margin-bottom: 30px;
            font-size: 1.8em;
            max-width: 600px;
            line-height: 1.4;
        }

        #qrcode {
            margin: 20px auto;
            padding: 15px;
            background: white;
            border-radius: 15px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .notice {
            color: #666;
            margin-top: 25px;
            font-size: 0.9em;
        }
    </style>
    <script src="https://cdn.jsdelivr.net/npm/qrcodejs@1.0.0/qrcode.min.js"></script>
</head>
<body>
    <div class="container">
        <h1>福田区小学数学AI赋能教育<br>研讨工作坊2.0</h1>
        <div id="qrcode"></div>
        <p class="notice">请使用微信扫描二维码进行签到</p>
    </div>

    <script>
        new QRCode(document.getElementById("qrcode"), {
            text: window.location.href.replace('index','sign'),
            width: 220,
            height: 220,
            colorDark : "#2196F3",
            colorLight : "#ffffff",
            correctLevel : QRCode.CorrectLevel.H
        });
    </script>
</body>
</html>